<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <f:view locale="#{facesContext.externalContext.requestLocale}" contentType="text/html">
        <h:head>
            <!--<ui:insert name="htmlhead">
                <meta http-equiv="refresh" content="#{session.maxInactiveInterval};url=/Corporate/index.xhtml?reason=expired" />
            </ui:insert>!-->
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <h:outputStylesheet library="css" name="main.css"  />
            <title>#{messages.ScalpersCoporate}</title>
        </h:head>
        
        

        <h:body>
            <p:growl widgetVar="notificationGrowl" showDetail="false" />  
            <p:socket onMessage="handleMessage" channel="/#{loginBean.usuarioSeleccionado.idUsuario}" />  
            <script type="text/javascript">  
                function handleMessage(facesmessage) {  
                    facesmessage.severity = 'info';  
                    notificationGrowl.show([facesmessage]);  
                }  
            </script>
            <p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  
            <p:dialog position="top" modal="true" widgetVar="statusDialog" header="#{Cargando}" draggable="false" closable="false">  
                <h:graphicImage library="images" name="loading.gif"></h:graphicImage>
            </p:dialog>
            <ui:insert name="dialogs">
                    
            </ui:insert>
            <ui:insert name="header">
                <ui:include src="HeaderTemplate.xhtml"></ui:include>
            </ui:insert>
            
            <ui:insert class="leftMenuCss" name="leftMenu">
                <ui:include src="LeftMenuTemplate.xhtml"></ui:include>
            </ui:insert>
                
                
            <p:panel styleClass="noMargin noPadding noBorder" id="barInsert">
                <ui:insert name="bar">
                </ui:insert>
            </p:panel>
            <ui:insert name="content">
                Default Content
            </ui:insert>
        </h:body>
    </f:view>
</html>
